//
//  BMPlayerProtocols.swift
//  Pods
//
//  Created by BrikerMan on 16/4/30.
//
//

import UIKit

extension BMPlayerControlView {
    public enum ButtonType: Int {
        case play       = 101
        case pause      = 102
        case back       = 103
        case fullscreen = 105
        case replay     = 106
        case showbarrage = 107
        case notshowbarrage = 108
        case sendbarrage = 109
    }
}

extension BMPlayer {
    static func formatSecondsToString(_ secounds: TimeInterval) -> String {
        let Min = Int(secounds / 60)
        let Sec = Int(secounds.truncatingRemainder(dividingBy: 60))
        return String(format: "%02d:%02d", Min, Sec)
    }
    
    
//    static func imageResourcePath(_ fileName: String) -> UIImage? {
//        let bundle = Bundle(for: self.classForCoder)
//        let image  = UIImage(named: fileName, in: bundle, compatibleWith: nil)
//        return image
//    }
}
